package com.bocai.yuweiwangluo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 
 * 订单信息
 * 
 */
public class OrderInfoBean implements Parcelable
{
	private String orderId;
	private String orderNo;
	private String orderDes;
	private String totalFee;
	private String couponFlag;
	private String cartDotNum;
	private String couponNum;
	private String msg;
	
	public void setMsg(String msg)
	{
		this.msg = msg;
	}
	
	public String getMsg()
	{
		return msg;
	}
	
	public void setCouponNum(String couponNum) {
		this.couponNum = couponNum;
	}
	
	public String getCouponNum() {
		return couponNum;
	}
	
	public void setCartDotNum(String cartDotNum)
	{
		this.cartDotNum = cartDotNum;
	}
	
	public String getCartDotNum()
	{
		return cartDotNum;
	}
	
	public String getCouponFlag()
	{
		return couponFlag;
	}
	
	public void setCouponFlag(String couponFlag)
	{
		this.couponFlag = couponFlag;
	}
	
	public OrderInfoBean()
	{
	}
	
	public String getOrderId()
	{
		return orderId;
	}
	
	public void setOrderId(String orderId)
	{
		this.orderId = orderId;
	}
	
	public String getOrderNo()
	{
		return orderNo;
	}
	
	public void setOrderNo(String orderNo)
	{
		this.orderNo = orderNo;
	}
	
	public String getOrderDes()
	{
		return orderDes;
	}
	
	public void setOrderDes(String orderDes)
	{
		this.orderDes = orderDes;
	}
	
	public String getTotalFee()
	{
		return totalFee.substring(1);
	}
	
	public String showTotalFee()
	{
		return totalFee;
	}
	
	public void setTotalFee(String totalFee)
	{
		this.totalFee = totalFee;
	}
	
	@Override
	public String toString()
	{
		return "OrderInfoBean [orderId=" + orderId + ", orderNo=" + orderNo + ", orderDes=" + orderDes + ", totalFee=" + totalFee
				+ ",couponFlag=" + couponFlag + "]";
	}
	
	@Override
	public int describeContents()
	{
		return 0;
	}
	
	@Override
	public void writeToParcel(Parcel out, int flags)
	{
		out.writeString(orderId);
		out.writeString(orderNo);
		out.writeString(orderDes);
		out.writeString(totalFee);
		out.writeString(couponFlag);
		out.writeString(cartDotNum);
	}
	
	public static final Creator<OrderInfoBean> CREATOR = new Creator<OrderInfoBean>()
	{
		@Override
		public OrderInfoBean[] newArray(int size)
		{
			return new OrderInfoBean[size];
		}
		
		@Override
		public OrderInfoBean createFromParcel(Parcel in)
		{
			return new OrderInfoBean(in);
		}
	};
	
	public OrderInfoBean(Parcel in)
	{
		orderId = in.readString();
		orderNo = in.readString();
		orderDes = in.readString();
		totalFee = in.readString();
		couponFlag = in.readString();
		cartDotNum = in.readString();
	}
}
